package com.qf.automation.file.service.impl;

import com.qf.automation.file.service.FileService;
import com.qf.automation.file.utils.AlibabaOssUtils;
import org.springframework.stereotype.Service;

import java.io.File;

@Service
public class AlibabaFileServiceImpl implements FileService {


    @Override
    public String saveFile(File file,String fileName) {
        String fileUrl=AlibabaOssUtils.uploadFile(fileName,file);
        return fileUrl;
    }
}
